package cn.boysoft.core.model;

import java.util.List;

public class TreeNode implements Tree{
	private String id;
	private String parentId;
	private String text;
	private boolean leaf;
	private boolean expanded;
	
	private List<Tree> children;
	@Override
	public List<Tree> getChildren() {
		return this.children;
	}

	@Override
	public String getId() {
		return this.id;
	}

	@Override
	public String getParentId() {
		return this.parentId;
	}

	@Override
	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

}
